package ${entity.namespace}.${prefixPackage};

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
<#if entity.hasUtilsOfShow><#t/>
import com.fzy.core.U;
</#if><#t/>

public class ${entity.nameCapital}ListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		${entity.nameCapital}ListVo vo = new ${entity.nameCapital}ListVo();
<#list entity.showProperties as property><#t/>
	<#if statics["com.fzy.core.codetools.PropertyWrapper"].STRING == property.propertyType><#t/>
		vo.set${property.nameCapital}(rs.getString("${property.columnName}"));
	</#if><#t/>
	<#if statics["com.fzy.core.codetools.PropertyWrapper"].DATE == property.propertyType><#t/>
		vo.set${property.nameCapital}(rs.getDate("${property.columnName}"));
	</#if><#t/>
	<#if statics["com.fzy.core.codetools.PropertyWrapper"].LONG == property.propertyType><#t/>
		vo.set${property.nameCapital}(U.getRsLong("${property.columnName}", rs));
	</#if><#t/>
	<#if statics["com.fzy.core.codetools.PropertyWrapper"].NUMBER == property.propertyType><#t/>
		vo.set${property.nameCapital}(U.getRsDouble("${property.columnName}", rs));
	</#if><#t/>
</#list><#t/>
		return vo;
	}

}
